package com.zmx.base.repository;

import com.zmx.base.entity.BaseServicePhone;
import com.zmx.common.common.repository.BaseRepository;
import org.springframework.data.jpa.repository.Query;

/**
 * @author zhaomxr
 */
public interface BaseServicePhoneRepository extends BaseRepository<BaseServicePhone> {

    @Query(value = "SELECT phone from base_service_phone where is_vaild = 1 limit 1", nativeQuery = true)
    String findServicePhone();
}
